/**
 *
 *
 */
package com.fw.timesheet.service;

import com.fw.timesheet.dao.ModuleDAO;
import com.fw.timesheet.model.Module;

/**
 * @author sigit <br>
 * @version 1.0 <br>
 * Application : timesheet <br>
 * Copyright (c) fastwire-group 2012 <br>
 * <br>
 */
public class ModuleService extends BaseService {
	private ModuleDAO moduleDAO;

	public ModuleDAO getModuleDAO() {
		return moduleDAO;
	}

	public void setModuleDAO(ModuleDAO moduleDAO) {
		this.moduleDAO = moduleDAO;
		setDaoObject(moduleDAO);
	}
			
	public void delete(Module persistentInstance) {
		getModuleDAO().delete(persistentInstance);
	}
	
	public Module findById(Long id) {
		return getModuleDAO().findById(id);
	}
}
